package com.yhn;


import com.yhn.bean.TableInfo;
import com.yhn.build.*;

import java.sql.SQLException;
import java.util.List;

/**
 * @Author 岳浩楠
 * @Date 2024-05-12 20:17
 * @Version 1.0
 */
public class MainApp {
    public static void main(String[] args) throws SQLException, ClassNotFoundException {

        /**
         * 构建模版文件
         */
        BuildBase4Template.execute();

        BuildTable buildTable = new BuildTable();
        List<TableInfo> tables = buildTable.parseAllTables();
        for (TableInfo table : tables) {
            BuildPo.build(table);
            BuildQuery.build(table);
            BuildMapper.build(table);
            BuildXML.build(table);
            BuildService.build(table);
            BuildServiceImpl.build(table);
            BuildController.build(table);
        }

    }
}
